package com.hp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.hp.entity.Position;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface PositionMapper extends BaseMapper<Position> {

    @Select("SELECT MAX(position.`position_number`) FROM POSITION ")
    Integer selectMaxNum();
}
